/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "物料清单",TableName = "base_materialdetail")]
    public partial class base_materialdetail:BaseEntity
    {
        /// <summary>
       ///主键Id
       /// </summary>
       [Key]
       [Display(Name ="主键Id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int materialdetail_id { get; set; }

       /// <summary>
       ///父项产品
       /// </summary>
       [Display(Name ="父项产品")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? parentproduct_id { get; set; }

       /// <summary>
       ///父项产品编号
       /// </summary>
       [Display(Name ="父项产品编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string pproductcode { get; set; }

       /// <summary>
       ///父项产品名称
       /// </summary>
       [Display(Name ="父项产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string pproducname { get; set; }

       /// <summary>
       ///父项产品规格
       /// </summary>
       [Display(Name ="父项产品规格")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string pproductstandard { get; set; }

       /// <summary>
       ///父项单位
       /// </summary>
       [Display(Name ="父项单位")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? punit_id { get; set; }

       /// <summary>
       ///子项产品
       /// </summary>
       [Display(Name ="子项产品")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? childproduct_id { get; set; }

       /// <summary>
       ///子项产品编号
       /// </summary>
       [Display(Name ="子项产品编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string cproductcode { get; set; }

       /// <summary>
       ///子项产品名称
       /// </summary>
       [Display(Name ="子项产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string cproducname { get; set; }

       /// <summary>
       ///子项产品规格
       /// </summary>
       [Display(Name ="子项产品规格")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string cproductstandard { get; set; }

       /// <summary>
       ///子项单位
       /// </summary>
       [Display(Name ="子项单位")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? cunit_id { get; set; }

       /// <summary>
       ///单位用量
       /// </summary>
       [Display(Name ="单位用量")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string quantityper { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///创建人编号
       /// </summary>
       [Display(Name ="创建人编号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CreateID { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Modifier { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///修改人编号
       /// </summary>
       [Display(Name ="修改人编号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ModifyID { get; set; }

       
    }
}